﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CAUNetLogin
{
    public partial class Browser : Form
    {
        private static string uri="http://www.cau.edu.cn/";
        public Browser(string str)
        {
            uri = str;
            InitializeComponent();
            this.Text = "";
            if (str=="http://202.205.91.62/")
            {
                this.Text = "教务URP系统";
            }
            else
            {
                this.Text="自助服务平台";
            }
            webBrowserURP.Navigate(new Uri(uri));
        }
        public Browser()
        {
            InitializeComponent();
            this.Text = "迷你浏览器";
            webBrowserURP.Navigate(new Uri(uri));
        }

        public Browser(string title, string url)
        {
            InitializeComponent();
            this.Text = title;
            webBrowserURP.Navigate(new Uri(url));
        }
    }
}
